import request from '@/utils/request'

// 查询舆情处置列表
export function getPublicsentimentAll(query) {
  return request({
    url: '/publicsentiment/publicsentiment/selectAll',
    method: 'get',
    params: query
  })
}

//舆情属地统计
export function getPublicsentSource(data) {
  return request({
    url: '/report/statistics/territorialStatisticsOfPublicOpinion',
    method: 'post',
    data: data
  })
}

//舆情秘书跳转
export function goTopath(data) {
  return request({
    url: '/zhihuixingguang/createTicketUrl',
    method: 'post',
    data: data
  })
}

//舆情统计
export function getStatistics(data) {
  return request({
    url: '/report/statistics/statics',
    method: 'post',
    data: data
  })
}

//舆情统计(七日)
export function get7DaysStatistics(data) {
  return request({
    url: '/report/statistics/statisticsOfPublicOpinion7Days',
    method: 'post',
    data: data
  })
}

//舆情统计(来源)
export function getSourceStatistics(data) {
  return request({
    url: '/report/statistics/statisticsOfPublicOpinionSources',
    method: 'post',
    data: data
  })
}
